* {
    margin: 0;
    padding: 0;
}
/* *{
    outline: solid #f00 1px !important;
    background: #000 !important;
    color: green !important;
}  */
.w {
    width: 1200px;
    margin: auto;
}

body {
    background-color: #f3f5f7;
    
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

.clearfix:before, .clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* 头部模块 */

.header {
    height: 42px;
    /* 注意此地方会层叠 w 里面的margin 所以要再先auto*/
    margin: 30px auto;
}

.header .logo {
    float: left;
    width: 198px;
    height: 53px;
}

/* 头部导航栏 */

.nav {
    float: left;
    margin-left: 60px;
}

.nav ul li {
    float: left;
    margin: 0 15px;
}

.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}

/* search模块 */

.search {
    width: 412px;
    height: 42px;
    float: left;
    margin-left: 70px;
}

.search input {
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
}

.w {
    width: 1200px;
    margin: auto;
}

body {
    background-color: #f3f5f7;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

/* 头部模块 */

.header {
    height: 42px;
    /* 注意此地方会层叠 w 里面的margin  所以要再先auto*/
    margin: 30px auto;
}

.header .logo {
    float: left;
    width: 198px;
    height: 53px;
}

/* 头部导航栏 */

.nav {
    float: left;
    margin-left: 60px;
}

.nav ul li {
    float: left;
    margin: 0 15px;
}

.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}

/* search模块 */

.search {
    width: 412px;
    height: 42px;
    float: left;
    margin-left: 70px;
}

.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    color: #ccc;
    padding-left: 15px;
    background-color: #f3f5f7;
    font-size: 14px;
    outline: none;
    /* 清除输入时的蓝色边框 */
}

.search button {
    /* input和button都是行内块元素，之间会有缝隙，把button挤下来，所以都给他们加浮动 */
    float: left;
    width: 50px;
    height: 42px;
    /* 按钮button默认有个边框需要我们手动去掉 */
    border: 0;
    background: url(images/btn.png);
}

/* user模块 */

.user img {
    /* 给图片添加 vertical-align: middle; 可以让文字和图片对齐*/
    vertical-align: middle;
    margin-right: 10px;
}

.header .user {
    float: right;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666;
}

/* banner 制作 */

.banner {
    height: 421px;
    background-color: #1c036c;
}

.banner .w {
    /* 必须是.banner .w */
    height: 421px;
    background: url(images/banner.png) no-repeat top center;
}

/* subnav侧边栏制作 */

.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background-color: rgba(0, 0, 0, 0.3);
}

.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.subnav ul li a {
    font-size: 14px;
    color: #fff;
}

.subnav ul li a span {
    float: right;
}

.subnav ul li a:hover {
    color: #00a4ff;
}

/* course课程表 */

.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    color: #fff;
    background-color: #9bceea;
    font-size: 18px;
    line-height: 48px;
    text-align: center;
}

.course .bd {
    padding: 0 20px;
}

.course .bd ul li {
    border-bottom: 1px solid #ccc;
    padding: 14px 0;
}

.course .bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.course .bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd a {
    display: block;
    height: 38px;
    color: #00a4ff;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    text-align: center;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;
}

/* 精品推荐模块 */

.goods {
    height: 60px;
    background-color: #fff;
    margin-top: 10px;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
    /* 行高会继承， 会继承给3个孩子 */
    line-height: 60px;
}

.goods h3 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}

.goods ul {
    float: left;
    margin-left: 30px;
}

.goods ul li {
    float: left;
}

.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #ccc;
}

.goods .mod {
    float: right;
    margin-right: 30px;
    color: #00a4ff;
    font-size: 14px;
}

/* box核心内容区域 */

.box {
    margin-top: 30px;
    
}

.box .box-hd {
    height: 45px;
}

.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
    font-weight: normal;
}

.box-hd>a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}

/* 把li 的父亲ul 修改的足够宽一行能装开5个盒子就不会换行了 */

.box-bd ul {
    width: 1225px;
}

.box-bd ul li {
    position: relative;
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.box-bd li img {
    width: 103%;
    
}

.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}
.box-bd ul li em {
    position: absolute;
    top: 4px;
    right: -4px;
}
.box-bd .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #999;
}

.box-bd .info span {
    color: #ff7c2d;
}

/* 编程入门 */

.box-hd .box-list {
    float: left;
    margin: 0 250px;
}

.box-hd .box-list li {
    float: left;
    margin-left: 70px;
}

.box-list li a {
    color: #868686;
}

.box-hd .box-list li:first-child a {
    color: #00a4ff;
}

.box-hd .box-list li a:hover {
    color: #00a4ff;
}

.box-bd .left {
    float: left;
}

.box-bd .right {
    float: right;
    width: 960px;
}

.box-bd .right>img {
    float: left;
}

.right ul {
    float: left;
    width: 975px;
    margin-top: 20px;

}
/* footer 底部 */
.footer{
    height: 415px;
    background-color: #fff;
    margin-top: 40px;
}
.footer .w{
    padding-top: 35px;
}
.footer .copyright{
    float: left;
}
.copyright p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}
.copyright .app{
    display: block;
    width: 118px;
    height: 33px;
    border: 1px solid #00a5ff;
    font-size: 16px;
    color: #00a4ff;
    text-align: center;
    line-height: 33px;
}
.footer .links{
    float: right;
}
.footer .links dl{
    float: left;
    margin-left: 100px;
}
.links dl dt{
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}
.links dl dd a{
    font-size: 12px;
    color: #333;
}